//import java.util.Scanner;

//public class Main {
//    public static int func(int n){
//        int count = 0;
//        for (int i = 0; i < n; i++){
//            for (int j = 0; j < n; j++){
//                count++;//8
//            }
//        }
//        for (int k = 0; k < 2 * n; k++){
//            count++;//12
//        }
//        int m = 10;
//        while (m >0){
//            count++;//16
//            m--;
//        }
//        return count;
//    }
//    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        System.out.println(func(n));
//    }
public class Main {
    public static void main(String[] args) {
        MyarrayList myarrayList = new MyarrayList();
        myarrayList.add(0,1);
        myarrayList.add(1,2);
        myarrayList.add(2,3);
        myarrayList.add(3,4);
        myarrayList.add(4,5);
        System.out.println(myarrayList.size());
        System.out.println(myarrayList.contains(25));
        System.out.println(myarrayList.search(3));
        System.out.println(myarrayList.getPos(0));
        myarrayList.display();
        myarrayList.setPos(0, 55);
        myarrayList.display();
        myarrayList.remove(5);
        myarrayList.display();
    }
}






























